package demo;

import com.alibaba.excel.annotation.ExcelProperty;

import java.time.LocalDateTime;

/**
 * 网站上的留言信息
 */
public class Post {

    public Post() {
    }

    public Post(Integer id, String name, LocalDateTime date, String content) {
        this.id = id;
        this.name = name;
        this.date = date;
        this.content = content;
    }

    @ExcelProperty("编号")
    private Integer id;

    @ExcelProperty("发贴人")
    private String name;

    @ExcelProperty("时间")
    private LocalDateTime date;

    @ExcelProperty("内容")
    private String content;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public LocalDateTime getDate() {
        return date;
    }

    public void setDate(LocalDateTime date) {
        this.date = date;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    @Override
    public String toString() {
        return "Post{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", date=" + date +
                ", content='" + content + '\'' +
                '}';
    }
}
